package task;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;

import org.eclipse.swt.graphics.ImageData;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

import task.dao.ObjectDb;
import util.JdbcUtil;


public class DbPing extends DbTask {
	@Override
	protected void doRun(Map<String, String> props) throws SQLException {
//		checkMissingAndExcessiveTables(schema);
		System.out.printf("Check connectivity to%n url:%s%n user:%s%n", conn().getMetaData().getURL(), conn().getMetaData().getUserName());
	}

	@Override
	public String getDescription() {
		String desc = "Check connectivity to a database.";
		return desc;
	}

	@Override
	public ImageData getImageData() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String[] propertyNames() {
		String[] props = {};
		return props;
	}
}
